/**
 * Project Name:YCApiServer-dao
 * File Name:PushMessageFlowMapper.java
 * Package Name:com.yc.music.mapper.dao
 * Date:2016年5月5日下午5:51:12
 * Copyright (c) 2016 
 *
 */
package com.yc.music.mapper.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yc.music.model.YcPushMassageCopyrightFlowVo;
import com.yc.music.model.YcPushMassageFlow;
import com.yc.music.model.YcPushMassageFlowVo;
import com.yc.music.model.weixinpay.WeixinCharge;

/**
 * 
 * ClassName: PushMessageFlowMapper <br/>
 * Function:推送流水. <br/>
 * Reason: TODO ADD REASON(可选). <br/>
 * date: 2016年9月9日 下午5:12:40 <br/>
 *
 * @author qinhaiguan
 * @version v3.0
 */
public interface PushMessageFlowMapper {

	public int getCountPushMessageByUidAndType(@Param("otheruid") Long otheruid,@Param("pushtype") String  pushtype,
			@Param("isread") Integer isread)throws Exception;
	
	public int getCountPushMessage(@Param("uid") Long uid,@Param("otheruid") Long otheruid,@Param("workid") Long workid,
			@Param("worktype") Integer worktype,@Param("pushtype") String pushtype)throws Exception;
	
	public List<YcPushMassageCopyrightFlowVo> getCopyrightMessageList(@Param("otheruid") Long otheruid,@Param("start") int start,@Param("size") int size)throws Exception;
	
//	public List<YcPushMassageCopyrightFlowVo> getPushCopyrightOrderNo(@Param("workid") Long workid,@Param("ctype") int ctype)throws Exception;
	
	public void savePushMessageFlow(YcPushMassageFlow flow) throws Exception;
	
	public void updatePushMessageFlowByUid(@Param("otheruid") Long otheruid,@Param("pushtype") String  pushtype,
			@Param("isread") Integer isread)throws Exception;
	
	public void updatePushMessageFlowByUid23(@Param("otheruid") Long otheruid,@Param("pushtype") String  pushtype,@Param("cpushtype") String  cpushtype,
			@Param("isread") Integer isread)throws Exception;
	
	public List<YcPushMassageFlowVo> getSysMessageList(@Param("otheruid") Long otheruid,@Param("start") int start,@Param("size") int size)throws Exception;
	
	
	public List<YcPushMassageFlowVo> getCooperateMsg23(@Param("uid") Long uid,@Param("start") int start,@Param("size") int size)throws Exception;
	
	public int getCooperateMsgCount23(@Param("otheruid") Long otheruid,
			@Param("isread") Integer isread)throws Exception;
	
}
